/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.payment.api.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * sft返回结果
 *
 * @author zq
 * @description
 * @data: 2020/11/30
 */
@Data
public class SftPayResultDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "true/false")
    private String result;

    @ApiModelProperty(value = "errorCode")
    private String errorCode;

    @ApiModelProperty(value = "errorMsg")
    private String errorMsg;

    @ApiModelProperty(value = "以JSON格式将结果返回")
    private String data;

    @Data
    public class PayDataDto {
        @ApiModelProperty(value = "代理商在盛付通开设的商户编号")
        private String channelID;
        @ApiModelProperty(value = "商户订单号")
        private String outOrderNo;
        @ApiModelProperty(value = "商户号")
        private String subMerchantNo;
        @ApiModelProperty(value = "终端")
        private String terminalId;
        @ApiModelProperty(value = "金额")
        private String totalAmount;
        @ApiModelProperty(value = "金额")
        private String txnTime;
        @ApiModelProperty(value = "微信:TX01 支付宝:ZFB01 银联扫码:CUP01")
        private String walletType;
        @ApiModelProperty(value = "以JSON格式将结果返回")
        private String cloudPayInfo;
        @ApiModelProperty(value = "渠道订单号")
        private String authRef;
        @ApiModelProperty(value = "实付金额")
        private String payAmount;
        @ApiModelProperty(value = "优惠金额")
        private String discountAmount;
        @ApiModelProperty(value = "盛付通订单号")
        private String orderId;
        @ApiModelProperty(value = "扫码机构订单号")
        private String authOrderNo;

        @Data
        public class CloudPayInfo {
            @ApiModelProperty(value = "微信分配的小程序ID")
            private String appId;
            @ApiModelProperty(value = "时间戳 从1970年1月1日00:00:00至今的秒数,即当前的时间")
            private String timeStamp;
            @ApiModelProperty(value = "随机串")
            private String nonceStr;
            @ApiModelProperty(value = "数据包，统一下单接口返回的 prepay_id 参数值")
            private String packageStr;
            @ApiModelProperty(value = "签名方式 MD5")
            private String signType;
            @ApiModelProperty(value = "签名数据")
            private String paySign;
        }
    }

}
